/***************************************************************
 *
 * Filename：FileSendWindow.h
 * Abstract：the design of send file window
 * version ：1.0
 *
 * Copyright (c) 2011 SCUT DT&P FY&XC
 *
***************************************************************/

#ifndef FILESENDWINDOW_H
#define FILESENDWINDOW_H

#include <QtNetwork>
#include "Filerswindow.h"

class FileSendWindow : public QDialog
{
    Q_OBJECT

public:
    FileSendWindow(QHostAddress addr);
    QString getfileName();
    void setlabeltext(QString txt);
    void setProgresstext(QString txt);
    void setProgressBar(qint64 max,qint64 value);
    void setopenstate(bool flag);
    void setsendstate(bool flag);

public:
    QString *fileName;
    QString *theFileName;

private:
    QWidget *fileSWD;
    QPushButton *openButton;
    QPushButton *sendButton;
    QPushButton *exitButton;
    QHostAddress TCPSAddr;
    bool send;

public slots:
    void slotopenfile();
    void slotexit();
    void slotsendfile();

signals:
    void sendFileName(QString fileName);
    void stopsendfile();

};



#endif // FILESENDWINDOW_H
